﻿<Page x:Class="SoftWareBoot.Page_Down"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
	Title="Page_Down" Background="Transparent">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="100*" />
            <RowDefinition Height="26"/>
            <RowDefinition Height="26"/>
        </Grid.RowDefinitions>
        <StackPanel Name="Wait_Panel" Grid.Row="0" Grid.RowSpan="2"  VerticalAlignment="Center" Visibility="Hidden">
            <TextBlock Margin="20,0,20,00" Text="系统正在加载更新列表，请稍后..." HorizontalAlignment="Center"/>
            <ProgressBar Style="{x:Null}"  IsIndeterminate="True" Height="18" Margin="20,10,20,0">
                <ProgressBar.Effect>
                    <DropShadowEffect Direction="315" BlurRadius="10" ShadowDepth="6" Opacity="0.6"/>
                </ProgressBar.Effect>
            </ProgressBar>
        </StackPanel>
        <TextBlock Name="Txt_Info" Margin="0,10,0,10" Grid.Row="0" Text="系统需要更新的文件列表："/>
        <ListBox Name="List_FileInfo"  Grid.Row="1">
            <ListBox.Effect>
                <DropShadowEffect Direction="0" BlurRadius="15" ShadowDepth="0" Opacity="0.3"/>
            </ListBox.Effect>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80*"/>
                            <ColumnDefinition Width="40"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Center" TextWrapping="Wrap" Text="{Binding Path=FilePath}"/>
                        <TextBlock Grid.Column="1" Text="{Binding Path=FileState}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Grid>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <ProgressBar  Name="Progess_DownOnce" Height="18" Grid.Row="2" VerticalAlignment="Center">
            <ProgressBar.Effect>
                <DropShadowEffect Direction="315" BlurRadius="10" ShadowDepth="6" Opacity="0.6"/>
            </ProgressBar.Effect>
        </ProgressBar>
        <ProgressBar  Name="Progess_Down" Height="18" Grid.Row="3" VerticalAlignment="Top">
            <ProgressBar.Effect>
                <DropShadowEffect Direction="315" BlurRadius="10" ShadowDepth="6" Opacity="0.6"/>
            </ProgressBar.Effect>
        </ProgressBar>
    </Grid>
</Page>
